package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.Repository;
import com.yiya.model.RepositoryExample;
import com.yiya.model.RepositoryModel;

public interface RepositoryMapper {
    int countByExample(RepositoryExample example);

    int deleteByExample(RepositoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Repository record);

    int insertSelective(Repository record);

    List<Repository> selectByExample(RepositoryExample example);

    Repository selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Repository record, @Param("example") RepositoryExample example);

    int updateByExample(@Param("record") Repository record, @Param("example") RepositoryExample example);

    int updateByPrimaryKeySelective(Repository record);

    int updateByPrimaryKey(Repository record);
    
    List<Repository> selectByModel(RepositoryModel record);
    
    int countByModel(RepositoryModel record);
    
    List<Repository> queryAllList(RepositoryModel record);
}